package com.itxx.keyCase.Test5;

public class Desk {
    /*  public static int count =10;
        //biaoji  true表示有东西吃  flase表示没有
        public  static boolean flag =false;

        public static final Object obj = new Object();*/
    private int count ;
    //private int count = 10 ;
    //biaoji  true表示有东西吃  flase表示没有
    private   boolean flag ;

    private  final Object obj = new Object();

    @Override
    public String toString() {
        return "Desk{" +
                "count=" + count +
                ", flag=" + flag +
                ", obj=" + obj +
                '}';
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Object getObj() {
        return obj;
    }

    public Desk(int count, boolean flag) {
        this.count = count;
        this.flag = flag;
    }

    public Desk() {
        this(10,false);
    }
}
